package com.gwclh.personnel.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 部门调动记录表
 * </p>
 *
 * @author gzhhh
 * @since 2020-07-24
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_dept_transfer")
@ApiModel(value="DeptTransfer对象", description="部门调动记录表")
public class DeptTransfer implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "唯一标识,无符号")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "员工id")
    private Integer empId;

    @ApiModelProperty(value = "调转前的部门id")
    private Integer preDeptId;

    @ApiModelProperty(value = "新所属部门id")
    private Integer newDeptId;

    @ApiModelProperty(value = "调转类型,1主动调动，2被动调动，0数据错误,默认1")
    private Integer traType;

    @ApiModelProperty(value = "调转原因")
    private String traReason;

    @ApiModelProperty(value = "备注")
    private String traRemark;

    @ApiModelProperty(value = "调转日期，自动填充")
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    @ApiModelProperty(value = "操作人id")
    private Integer operId;


}
